<template>
<div class="choiceBox">
    <div class="triangle"></div>
        <li @click="changeLang()">中文</li>
</div>     
</template>
<script setup>
const changeLang = function(){
    location.reload()
}
</script>
<style scoped>
.choiceBox{
    background-color: white;
    width: 90px;
    height: 40px;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-47.5px);
    padding-top: 10%;
    border-radius: 6px;
    transition: 0.14s;
    box-shadow: 2px 3px 6px 0px rgb(0,0, 0, 16%);
}
.choiceBox li{
    width: 100%;
    height: 100%;
    font-family: Source Han Sans CN;
    font-weight: normal;
    font-stretch: normal;
    letter-spacing: 0px;
    color: #6f6f6f;
    display: flex;
    justify-content: center;
    list-style: none;
    cursor: pointer;
    align-items: center;
    font-size: 15px;
}
.choiceBox li:hover{
    color: black;
}
.triangle{
    border: 8px solid transparent;
    border-bottom: 8px solid white;
    position: absolute;
    top: -14px;
    width: 0px;
    height: 0%;
    left: 50%;
    transform: translateX(-4px);
}
</style>